package com.slunk.accessors;

import com.slunk.platforms.SRenderSprite;

import aurelienribon.tweenengine.TweenAccessor;

public class SRenderSpriteAccessor implements TweenAccessor<SRenderSprite> {
	public static final int FADE = 1;
	
	@Override
	public int getValues(SRenderSprite arg0, int arg1, float[] arg2) {
		switch (arg1) {
	        case FADE:
	        	arg2[0] = arg0.getAlpha();
	        	return 1;
	    }
		return -1;
	}

	@Override
	public void setValues(SRenderSprite arg0, int arg1, float[] arg2) {
		switch (arg1) {
	        case FADE: 
	        	arg0.setAlpha(arg2[0]);
	        	break;
	        default: assert false; break;
		}
	}
}
